Skip to content

fix: Fix the 'ln' command that fails silently#1239

Closed
lewisemm wants to merge 1 commit intooverhangio:mainfrom
lewisemm:main
Closed

fix: Fix the 'ln' command that fails silently#1239
lewisemm wants to merge 1 commit intooverhangio:mainfrom
lewisemm:main

Conversation

@lewisemm
Copy link
Copy Markdown

  • This command takes the form of: ln -s source_directory target_directory.

  • If the target_directory already exists on the file system, the command will fail with a message that is similar to what is shown below.

    ln: failed to create symbolic link 'target_directory': File exists

  • This message is not being logged (most likely due to how Docker's buildkit logs messages) and the build process fails when the '/scripts/copy-node-modules.sh' script is executed.

  • This fix adds a 'rm' command to first remove the 'target_directory' before the 'ln' command is executed.

- This command takes the form of:
	`ln -s source_directory target_directory`.

- If the `target_directory` already exists on the file system, the
command will fail with a message that is similar to what is shown below.

	`ln: failed to create symbolic link 'target_directory': File exists`

- This message is not being logged (most likely due to how Docker's
buildkit logs messages) and the build process fails when the
'/scripts/copy-node-modules.sh' script is executed.

- This fix adds a 'rm' command to first remove the 'target_directory'
before the 'ln' command is executed.
@DawoudSheraz DawoudSheraz moved this from Pending Triage to In review in Tutor project management May 23, 2025
@lewisemm lewisemm closed this May 24, 2025
@DawoudSheraz DawoudSheraz moved this from In review to Won't fix in Tutor project management May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Won't fix

Development

Successfully merging this pull request may close these issues.

3 participants